﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Entity.ModelConfiguration;
using Archives.Models.Users;

namespace Archives.Models.FluentConfiguration
{
    public class UserRoleConfiguration : EntityTypeConfiguration<UserRoleConfiguration>
    {
        public UserRoleConfiguration()
        {
           // HasKey(t => new { t.Role.Id, t.Function.Id });
            //Property(t => t.Role.Id).
            //  .HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity);

            //Property(d => d.Password).IsRequired();
            //Property(d => d.Password).HasMaxLength(50);

            //Property(d => d.Email).IsRequired();
            //Property(d => d.Email).HasMaxLength(50);
           
        }
    }
}